<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: Nikita.Brazhnikov
  Date: 3/4/13
  Time: 11:43 AM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:mycomps="http://java.sun.com/jsf/composite/composites/login">

<h:head>
    <title>Simple JSF Facelets page</title>
</h:head>

<h:body>
    <f:decorate template="templates/master_page_default.xhtml">
        <mycomps:login name_field="#{login_bean.login}"
                       password_field="#{login_bean.password}"
                       result_status="#{login_bean.status}"
                       result_descr="#{login_bean.statusDescription}"
                       action="#{login_bean.check}">
            <c:validateRequired for="login"/>
            <c:facet name="promt">
                Please log in
            </c:facet>

            <h:link outcome="events_page" value="Here is an example unrestricted page"/>
        </mycomps:login>
    </f:decorate>
</h:body>

</html>